package com.diandian.backend.store.dto;

import com.diandian.base.boot.starter.exception.DefaultException;

import java.io.Serializable;

public class JingdongHomeStoreDetailParamDTO implements Serializable {

	private Long id;
	private String code;
	private String belongEql;
	private String orgIdEql;
	private String orgCodeEql;

	public void check(){
		if(this.belongEql == null || "".equals(this.belongEql)){
			throw new DefaultException("归属标识不能为空");
		}
		if(this.id == null || this.code == null || "".equals(this.code)){
			throw new DefaultException("id和编码不能都为空");
		}
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getBelongEql() {
		return belongEql;
	}

	public void setBelongEql(String belongEql) {
		this.belongEql = belongEql;
	}

	public String getOrgIdEql() {
		return orgIdEql;
	}

	public void setOrgIdEql(String orgIdEql) {
		this.orgIdEql = orgIdEql;
	}

	public String getOrgCodeEql() {
		return orgCodeEql;
	}

	public void setOrgCodeEql(String orgCodeEql) {
		this.orgCodeEql = orgCodeEql;
	}
}
